package dujiu.luogu.sequence;

import java.util.Scanner;

public class P1421 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        a *= 10;
        int pen = 19;
        System.out.println((a+b)/pen);
        // double v = (a + res) / pen;
        // System.out.printf("%.f",v);
    }
}
